package cn.cjj.gulimall.ware.exception;

/**
 * @author CuiJunJie
 * @create 2021/7/10-15:09
 */
public class NoStockException extends RuntimeException{
    private Long skuId;

    public NoStockException(Long skuId) {
        super(skuId + "没有库存");
        this.skuId = skuId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}

